﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MoneyDistr.Question;
namespace MoneyDistr.Answer
{
    class Effie :IMoneyDistr
    {
        public long Mode(bool mode, int n)
        {
            long count = 0;

            if (mode == true)
            {
                count = n / 7 + (n % 7) / 5 + (n % 7) % 5;
            }
            else
                count = n / 5 + (n % 5) / 7 + (n % 5) % 7;
            return count;
        }
        public long GetCount(int n, int[] Base)
        {
            return Math.Min(Mode(true, n), Mode(false, n));
        }

    }
}
